package com.glink.manage.ftp;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/7/4 15:20
 */
@Component
@Data
public class FtpProperties {

    @Value("${ftp.username:nrftp}")
    private String username;
    @Value("${ftp.password:4r5t6y$R%T^Y}")
    private String password;
    @Value("${ftp.host:192.168.1.31}")
    private String host;
    @Value("${ftp.port:10012}")
    private int port;
    @Value("${ftp.baseUrl:/}")
    private String baseUrl;
    @Value("${ftp.passiveMode:true}")
    private boolean passiveMode;
    private String encoding = "UTF-8";
    private int bufferSize = 4194304;
    private int transferFileType = 2;
    private boolean renameUploaded;
    private int retryTime;
    @Value("${ftp.defaultPoolSize:20}")
    private int defaultPoolSize;
    @Value("${ftp.connectTimeout:60000}")
    private int connectTimeout;
}
